﻿public class LdLocAstTree : LuaAstTree
{
    public LuaVarReference Local;

    public LdLocAstTree(LuaVarReference variable)
    {
        Local = variable;
        ResultType = variable.StackType;
    }
    public override void WriteTo(ICodeWriter writer)
    {
        writer.Code(Local.Name);
    }
}
